<?php
class VB_Navigation_Item extends VB_Db_Table_Row {
	protected $_prefix = 'navigationitem';

	/**
	 * Get the group where this navigationitem belongs to
	 *
	 * @return VB_Navigation_Group
	 */
	public function getNavigationgroup() {
		return $this->findParentRow('VB_Navigation_Groups');
	}
	/**
	 * Get the direct children of this navigationitem
	 *
	 * @param int $navigationitem_id
	 * @return unknown
	 */
	public function getChildren() {
		return $this->getTable()->getChildren($this->navigationitem_id);
	}
}
